package com.logwire.dto.query;import com.baomidou.mybatisplus.annotation.TableField;import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;import com.logwire.config.shiro.ShiroUtils;import com.logwire.dto.UserDTO;import io.swagger.v3.oas.annotations.media.Schema;import lombok.Data;import org.springframework.util.ObjectUtils;@Datapublic class BaseDictInfoQuery extends BaseQuery {	/**	 * 字典类型	 */	@TableField(value = "type")	@Schema(description = "字典类型")	private Long typeId;	@Override	public QueryWrapper getWhere() {		final QueryWrapper<Object> objectQueryWrapper = new QueryWrapper<>();		if (!ObjectUtils.isEmpty(typeId)) {			objectQueryWrapper.like("type_id", typeId);		}		final UserDTO user = ShiroUtils.getUser();		objectQueryWrapper.eq("tenant_id", user.getTenantId());		objectQueryWrapper.last("order by type_id desc");		return objectQueryWrapper;	}}